package com.wswy.wzcx.ui.component;

import android.text.TextUtils;
import android.view.ViewGroup;
import com.wswy.wzcx.R;
import com.wswy.wzcx.ui.data.UserMessage.Message;

/**
 * Created by wangduheng26 on 2018/3/20.
 * wangduheng26@gmail.com
 */

public class UserMessageComponent1 extends BaseFeedbackComponent {

  private static final String TAG = "UserMessageComponent1";


  public UserMessageComponent1(ViewGroup parent) {
    super(parent, R.layout.item_message_system);
    tvContent = getView().findViewById(R.id.tv_content);
    imageContent = getView().findViewById(R.id.img_content);
    tvTime = getView().findViewById(R.id.tv_time);
  }


  @Override
  public void bind(Message data) {
    super.bind(data);


    if(!TextUtils.isEmpty(data.image)){
      displayImage(data.image,false);
    }

    }

}
